<?php

use yii\db\Migration;
use yii\db\Schema;

class m170719_091149_ADD_COLUMN_FINANCE_ORDER_FINANCE_ID extends Migration
{

    public function up()
    {

         $this->addColumn('{{finance_order}}', 'finance_id', Schema::TYPE_INTEGER. "(11)  NULL COMMENT '关联finance id' ");
    }

    public function down()
    {
        echo "m170719_091149_ADD_COLUMN_FINANCE_ORDER_FINANCE_ID cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
